package org.linlinjava.litemall.db.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.linlinjava.litemall.db.models.Address;

import java.util.List;

public interface AddressService extends IService<Address> {

    public List<Address> queryByUid(Long uid) ;

    public Address query(Long userId, Long id) ;

    public Address findDefault(Long userId) ;
    public void resetDefault(Long userId) ;

    public IPage<Address> querySelective(Long userId, String name, Integer pageNo, Integer pageSize) ;
}
